// 联合类型
let phone: number | string = 123123123;
let fn = function (type: number | boolean): boolean {
    return !!type;  // !!强制转换类型
}

// 交叉类型 --- 对一个参数而言，将两个类型交叉合并起来
interface People {
    name: string,
    age: number,
}
interface Man {
    sex: string
}
const rz = (man: People & Man): void => {
    console.log(man);
}

// 交叉断言
